package com.dlws.modules.template.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.dlws.modules.template.entity.ProductTemplate;
import com.dlws.modules.template.mapper.ProductTemplateMapper;

/**
 * 
 * 描述：产品模板
 * 创建人： 魏泽超
 * 创建时间: 2016-5-30 下午5:29:52
 * @version
 */
@Service
public class ProductTemplateServiceImpl implements ProductTemplateService{

	@Autowired
	private ProductTemplateMapper templateMapper;
	
	@Override
	public ProductTemplate queryOne(ProductTemplate record) {
		// TODO Auto-generated method stub
		return templateMapper.selectOne(record);
	}

	@Override
	public List<ProductTemplate> queryAll(ProductTemplate record) {
		// TODO Auto-generated method stub
		return templateMapper.select(record);
	}

	@Override
	public int queryCount(ProductTemplate record) {
		// TODO Auto-generated method stub
		return templateMapper.selectCount(record);
	}

	@Override
	public ProductTemplate queryByPrimaryKey(Object key) {
		// TODO Auto-generated method stub
		return templateMapper.selectByPrimaryKey(key);
	}

	@Override
	public int add(ProductTemplate record) {
		// TODO Auto-generated method stub
		return templateMapper.insert(record);
	}

	@Override
	public int addSelective(ProductTemplate record) {
		// TODO Auto-generated method stub
		return templateMapper.insertSelective(record);
	}

	@Override
	public int delete(ProductTemplate record) {
		// TODO Auto-generated method stub
		return templateMapper.delete(record);
	}

	@Override
	public int deleteByPrimaryKey(Object key) {
		// TODO Auto-generated method stub
		return templateMapper.deleteByPrimaryKey(key);
	}

	@Override
	public int updateByPrimaryKey(ProductTemplate record) {
		// TODO Auto-generated method stub
		return templateMapper.updateByPrimaryKey(record);
	}

	@Override
	public int updateByPrimaryKeySelective(ProductTemplate record) {
		// TODO Auto-generated method stub
		return templateMapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public int queryCountByExample(ProductTemplate example) {
		// TODO Auto-generated method stub
		return templateMapper.selectCountByExample(example);
	}

	@Override
	public List<ProductTemplate> queryByExample(ProductTemplate example) {
		// TODO Auto-generated method stub
		return templateMapper.selectByExample(example);
	}
	
}
